﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Copa_do_Mundo_2014
{
    public partial class Principal : Form
    {
       
        String[,] compras = new String[100,4];

        public Principal()
        {
            InitializeComponent();            
        }

        public Principal(String[,] compras)
        {
            InitializeComponent();
            this.compras = compras;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Reservar reservar = new Reservar( compras );
            reservar.Show();
            this.Hide();
        }

        private void buttonEditar_Click(object sender, EventArgs e)
        {
            Editar editar = new Editar( compras );
            editar.Show();
            this.Hide();
        }

        private void buttonConsultar_Click(object sender, EventArgs e)
        {
            Consultar consultar = new Consultar(compras);
            consultar.Show();
            this.Hide();
        }

        private void Principal_Load(object sender, EventArgs e)
        {

        }

        private void Principal_FormClosing(object sender, FormClosingEventArgs e)
        {
            Application.Exit();
        }
    }
}
